package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hu
 */
@Mapper
public interface ClazzMapper {

     List<Clazz> list(ClazzQueryParam queryParam);

     @Delete("delete from clazz where id = #{id}")
     void deleteById(Integer id);

     void addClazz(Clazz clazz);

     Clazz selById(@Param("id") Integer clazzId);

     void updateById(Clazz clazz);

     List<Clazz> sel();
}
